<div class="blank10"></div>
<%= error_messages_for :enterprise %>

<div id="title1" align="left"> <%=image_tag "title_icon1.gif"%>添加商户（美工加个图片）


</div>
<!--以下为商户添加表单-->
<div id="Tab1"> <span></span>

  <% form_for :enterprise,:url => { :action => "create" }  do |f| %>
    <div class="Contentbox">
      <div id="con_one_1" class="hover">
        <div class="reginfo">

          <div class="titleName"> 城市: </div>
          <%= f.select :city_id, DCity.find(:all).map {|c| [ c.city_name, c.id ] },{:prompt => " "} %>
          <div class="blank14"></div>
          <div class="titleName"> 类型: </div>
          <%= f.select :style_id, DStyle.find(:all).map {|c| [ c.style_name, c.id ] },{:prompt => " "} %>
          <div class="blank14"></div>
          <div class="titleName">商户名：</div>
          <%= f.text_field :enterprise_name %>
          *
          <div class="blank14"></div>
          <div class="titleName">别名：</div>
          <%= f.text_field :alias %>
          <div class="blank14"></div>
          <div class="titleName">地址：</div>
          <%= f.text_field :address %>
          *
          <div class="blank14"></div>
          <div class="titleName">靠近：</div>
          <%= f.text_field :anear %>
          <div class="blank14"></div>
          <div class="titleName">电话：</div>
          <%= f.text_field :telephone %>
          <div class="blank14"></div>
          <div class="titleName"> 地区: </div>
          <%= f.select :area_id, DArea.find(:all).map {|c| [ c.area_name, c.id ] },{:prompt => "请选择地区"} %>
          <div class="blank14"></div>
          <div class="titleName"> 菜系: </div>
          <%= f.select :cuisine_id, DCuisine.find(:all).map {|c| [ c.cuisine_name, c.id ] },{:prompt => "请选择菜系"} %>
          <div class="blank14"></div>
          <div><div class="blank14"></div><div class="blank14"></div>
            <%= f.submit '添加商户(由美工添加Button样式)',:class=>"btns"%>
          </div>
          <div class="blank20"></div>
          <div id="service"></div>
          <div>
            <textarea name="" style="height:150px;width:488px;" cols="" rows="">
            </textarea>
          </div>
        </div>
      </div>
    </div>
  <% end %>
</div>
